import request from '@/utils/request'

export function page(data) {
  return request({
    url: '/product/page',
    method: 'post',
    data
  })
}

// export function update(data){
//     return request.post("/depart/update",data);
// }

export function add(data){
   return  request.post("/product/add",data);
}


// export function detail(productId){
//   // return  request.post("/depart/delete/"+deptId);
//   return request({
//     url:"/product/detail/"+productId,
//     method:"get",
//   });
export function details(productId){
    return request.get("/product/detail/"+productId)
};

export function deletes(productId){
  return request.get("/product/delete/"+productId)
};

export function findAll(){
  return request.get("/area/findAll")
};